//plugin definition
$.fn.quickselect = function(options)
{
	var opts = $.extend({}, $.fn.quickselect.defaults, options);
	opts.controlId = $(this).attr("id");
	if(opts.selectionsId=="") opts.selectionsId = opts.controlId +"_selections";
	// plugin implimentation code goes here
	$(this)
	.click(clearSelection)
	.change(completeSelection)
	.addClass(opts.controlClass)
	.mouseover(showSelections)
	.wrap('<div id="testcontainer" class="'+opts.containerClass+'"></div>')
	.after('<ul id="'+opts.selectionsId+'" class="'+opts.selectionClass+' '+opts.hiddenClass+'"></ul>') 
	.parent(0).mouseleave(hideSelections);
	populateSelections();
	return $(this);
	//private methods
	function hideSelections()
	{
		$('#'+opts.selectionsId).addClass(opts.hiddenClass);
	}

	
};

$.fn.quickselect.defaults =
{
	controlId: "",
	controlClass: "ui-state-default",
	hoverClass: "ui-state-hover",
	activeText: "Stop",
	passiveText: "Start"
};



